package com.hf.proandcon;

public class TestDriver {
    public static void main(String[] args) {
        //创建一个仓库
        MyStack myStack = new MyStack(9);
        //创建生成线程
        Thread thread = new ThreadProducer(myStack);
        //创建消费线程
        Thread thread1 = new ThreadConsumer(myStack);
        //启动线程
        thread.start();
        thread1.start();
    }
}
